<!DOCTYPE html>
<html>
  <head>
    <title>Sign in</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1>Sign in</h1>
 
     <% if(locals.username === undefined){ %>
    <p>Welcome to Signin</p>
    <form name='login' action='/signin' method='post'>
      Username: <input type="text" name="username"> <br/>
      Password: <input type='password' name='password'>
      <input type='submit' value='submit'>
    </form>
    <% }%>
     <% if(locals.username){ %>
         <strong>Username: <%= username %></strong>
        <% }%>
        <br/>
        <% if(locals.success){ %>
         <strong><%= success %></strong>
        <% }%>
        <br/>
         <% if(locals.error){ %>
         <strong>Error: <%= error %></strong>
          <% }%>
  </body>
</html>